<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>管理图片</title>
    <link rel="shortcut icon"  href="images/favicon.ico"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<LINK href="<%=path %>/admin/css/admin.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=path %>/admin/js/myJs.js" charset=utf-8></script>
	<link href="<%=path %>/admin/css/myStyle.css" rel="stylesheet" type="text/css" />
	<!-- 图片展开特效 -->
	<!-- 图片预览  -->
    <script type="text/javascript" src="<%=path %>/js/jquery-1.5.1.min.js" charset=utf-8></script>
	<script type="text/javascript" src="<%=path %>/js/jquery.magnifier.js"></script>
	<style type="text/css">
		.ulImage{
			width:95%;
			list-style:none;
		}
		.ulImage li{
			float:left;
			margin-left:20px;
		}
		.ulImage p{
			text-align:center;
			width:140px;
			overflow:hidden;
			height:1.5em;
		}
		.shanchu{
		 	width:100%;
			height:auto;
		}
		.shanchu p{
			width:100%; height:auto;
		}
	</style>
	
  </head>
  
  <body>
  <TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
  <TR height=20>
    <TD></TD></TR>
  <TR height=22>
    <TD style="PADDING-LEFT: 20px; FONT-WEIGHT: bold; COLOR: #ffffff" 
    align=middle background="<%=path %>/admin/images/title_bg2.jpg">图片信息列表</TD></TR>
  <TR bgColor=#ecf4fc height=12>
    <TD></TD></TR>
  <TR height=20>
    <TD></TD></TR></TABLE>
    
    <!-- 图片信息内容块 -->
  <ul class="ulImage">
  	<s:iterator value="#attr.pictureList" id="pic">
  	
		<li>
		<!-- 此class为必须 ，不可改名 ，做图片变大-->
		<img class="magnify" src="<%=path %>/<s:property value="#pic.picPath" />"  width="150" height="120" />
		<p><input type="checkbox" value="<s:property value="#pic.picId"/>" id="picId" name="picId" /></p>
		<p><s:property value="#pic.picDesc" /></p>
		<p>
		<a href="picture_showDetail.html?picture.picId=<s:property value="#pic.picId" />">[详细]</a>
		<a href="picture_preUpdate.html?picture.picId=<s:property value="#pic.picId" />">[修改]</a>
		<a href="picture_deletePicture.html?picture.picId=<s:property value="#pic.picId" />" onclick="return confirm('确认删除？');">[删除]</a>
		</p>
		</li>
		</s:iterator>
		<div style="clear:both"></div>
		<li  class="shanchu" style=" margin-top:10px; ">
			<p>
			<input type="checkbox" value="全选" id="selectAll" onclick="selectAll(this.checked,'picId');" />
				<button type="button" class="allDelete" onclick="deleteAll('picture_deleteMore.html','picId');">删除选中</button>
			</p>
			<p>
			<s:property  value="#attr.link" escape="false"/>
			</p>
		</li>
	</ul>

  </body>
</html>
